import api from '../index'
import type { Locale } from '@/common/init/i18n'
import type { ResponseData } from '../index'
// 图片域名
export const getImageDomain = () =>
	api.get<{
		code: number,
		siteCurrency: string,
		siteClient: Locale,
		host: string
	}>('system/api/basics/qiniu', {
		custom: {
			auth: false
		}
	})
// 小程序下获取图片信息
export const getImageInfo = (fileName: string) =>
	api.get<ResponseData<string>>('file/redirect/local', {
		data: {
			fileName
		},
		custom: {
			auth: false
		}
	})
